package com.mall.shopping.converter;

import com.mall.shopping.dal.entitys.PanelContent;
import com.mall.shopping.dto.NavigationDto;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author: lin
 * @Date: 2020/7/11 15:17
 */
@Mapper(componentModel = "spring")
public interface PanelContentConverter {
    NavigationDto PanelContentToNavigation(PanelContent panelContent);
    List<NavigationDto> convertToList(List<PanelContent> panelContents);
}
